package cn.xp.fegin;

import cn.xp.dto.DeviceTypeDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "device-service")
public interface DeviceFeignClient {

    @GetMapping("/api/device/deviceType/{id}")
    public List<DeviceTypeDto> DeviceType(@PathVariable("id") Long id);


    @GetMapping("/api/device/Type/{id}")
    public List<DeviceTypeDto> TypeList(@PathVariable("id") Long id);
}
